import java.io.*;

class rename {
    public static void main(String[] args) {
        File file = new File("V:\\大型栏目-年末混剪2022\\JGetFans\\Face");
        File[] files = file.listFiles((dir, name) -> name.toLowerCase().endsWith(".jpg"));
        for (int i = 0; i < files.length; i++) {
            files[i].renameTo(new File(file, i + 1 + ".png"));
        }
    }
}